import { defineStore } from 'pinia';

export const useMainStore = defineStore('main', {
  state: () => ({
    walletAccount: '',
    walletNetwork: true,
    showWalletDialog: false,
    baseData: null,
    loading: false,
    bnbBalance: 0,
    usdtBalance: 0,
    axieBalance: 0
  }),
  actions: {
    setWalletAccount(data: any) {
      this.walletAccount = data;
    },
    setWalletNetwork(data: any) {
      this.walletNetwork = data;
    },
    setShowWalletDialog(data: any) {
      this.showWalletDialog = data;
    },
    setBaseData(data: any) {
      this.baseData = data;
    },
    setLoading(data: any) {
      this.loading = data;
    },
    setbnbBalance(data: any) {
      this.bnbBalance = data;
    },
    setusdtBalance(data: any) {
      this.usdtBalance = data;
    },
    setaxieBalance(data: any) {
      this.axieBalance = data;
    }
  }
});
